package com.climb.spingcloud.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.climb.spingcloud.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author filteraid
 * @since 2021-07-29
 */
@Data
  @EqualsAndHashCode(callSuper = true)
    @TableName("shop_order")
public class Order extends BaseEntity {

    private static final long serialVersionUID = 1L;

      /**
     * 用户id
     */
      private Long userId;

      /**
     * 用户名
     */
      private String userName;

      /**
     * 商品id
     */
      private Long productId;

      /**
     * 商品名称
     */
      private String productName;

      /**
     * 商品单价
     */
      private BigDecimal productPrice;

      /**
     * 购买数量
     */
      private Integer number;

      /**
     * 是否删除（0-正常，1-删除）
     */
      @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
